"The FileEditor component allows for the editing of a file. The file should be owned by <B>nobody</B> (or whomever starts the WebObjects application), or it should be writable by everyone. Also, since the file is written \"atomically\", the directory in which the file resides must be owned by <B>nobody</B>, or be writable by everyone. To use FileEditor, you pass the <B>pathName</B> of the file you want to display or edit; FileEditor takes care of the rest. You must wrap the FileEditor in <form> tags in order for it to work properly.
<P>
FileEditor provides Save and Revert buttons. If the save process fails an error message is displayed, but the user's work is not lost. If the user clicks the Revert button, the text area is restored from the file as it was last saved.
<P>
If this proves to be a useful component, it may make sense to create some sort of locking mechanism to prevent multiple users from editing the same file and overwriting each other.";
parameters = (
"pathName",
"The path to the file (on the server) that you want to allow the user to edit.",
"rows",
"The number of rows to display in the text area. Default is 15."
"cols",
"The number of columns to display in the text area. Default is 65."
);
currentVersion = "1.0";
releaseDate = "March 4, 1996";
supportPolicy = "ExampleCode: Unsupported";
distributionPolicy = "You may freely distribute this code";